package com.ruoyi.user.mapper;

import com.ruoyi.user.domain.UserOrderReview;
import com.ruoyi.user.domain.vo.OrderReviewDetailVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserOrderReviewsMapper {
    int insertOrderReview(UserOrderReview review);
    // 级联详情查询（联表用户与商家信息）
    List<OrderReviewDetailVO> selectOrderReviewDetailsByMerchantId(@Param("merchantId") Long merchantId);
    OrderReviewDetailVO selectOrderReviewDetailById(@Param("reviewId") Long reviewId);
    List<OrderReviewDetailVO> selectOrderReviewDetailsByOrderId(@Param("orderId") Long orderId);
}
